<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <h1>微博标题:{{weibo.title}}</h1>
    <h1>微博正文:{{weibo.content}}</h1>
</div>
<!--引入axios和vue-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    let id = location.search.split(".")[1];
    let v = new Vue({
        el:"body>div",
        data:{
            weibo:""
        },
        created:function () {
            axios.get("weibo/select/myDetail?id="+id).then(function (response) {
                v.weibo = response.data;
            })
        }
    })
</script>
</body>
</html>